home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Commodities
/
BlackHole
/
BlackHole.doc
< prev
next >
Wrap
Text File
|
1996-09-26
|
5KB
|
118 lines
BlackHole by Alan Singfield.
----------------------------
What is Black Hole?
-------------------
Black Hole is a nice little file deletion utility. Double click on it, and a
clone of its icon will appear on the Workbench screen. Drop an icon onto it and
it will be deleted (It will ask you first whether it's OK to do this). Double
click on it's icon and a control panel will appear, which contains the option
to quit amongst others.
Control Panel
-------------
Options are --
Quit Guess what this does.
About Tells you who wrote the program.
Delete Limit Max number of files to delete in one go. (Mainly so
confirmation requester doesn't drop off the bottom of
the screen)
Confirm Deletion If this is on (the default), you will be asked whether
you really want to delete the files you dropped on the
icon.
Ignore Protection Set this if you want to ignore the delete protection bit
that some files have set.
UnSnapshot Icon can go whereever Workbench wants to put it.
Snapshot Remember the current position of the icon.
This doesn't actually work yet, see later.
Save Save all preference settings.
Use Use preferences but don't save them.
Cancel Forget changes made.
Tooltypes
---------
Black Hole also accepts arguments in the ToolTypes of its icon. Indeed, this is
where it stores all the user preferences. The tooltypes accepted are --
ICONX X coordinate of icon.
ICONY Y coordinate of icon.
DELETELIMIT=n Delete no more than n files.
DONOTCONFIRM Don't confirm that its OK to delete (risky).
IGNOREPROTECTION Ignore delete protection.
If you decide to remove any of these, please enclose the line in brackets ()
rather than deleting the tooltype, so other people know what they are if the
document is lost.
System requirements
-------------------
Black Hole requires v2.04 or greater of the operating system. (And a few bytes
of RAM & disk space)
Version History
---------------
v1.0 No control panel or delete limit. Bug where it keeps a
5/4/92 lock on the directory it is started from. Dropping
a disk icon on the appicon doesn't cause an error
(not released) condition.Takes about 3 disk swaps if deleting stuff
from 2 disks on a single drive machine. Can't cope with
lone icons (just a .info file).
v1.1 Font sensitive control panel added which opens up over
4/5/92 the mouse pointer. Tries to reduce disk swaps.
Messes up slightly with requesters when one file is on a
disk that is not mounted. Can save preferences into the
tooltypes of the icon. Snapshot doesn't work - I can't
find a way of getting the position of the icon. If
anyone knows how, tell me!
Future Improvements
-------------------
(Probable) Allow user to specify some CLI command to run on each
file before deleting it (e.g. an archiver).
Dropping a disk icon could call up sys:system/format??
(Insane) locale.library support (I only speak English). Scaleable
checkboxes instead of gadtools' fixed size ones.
About the author
----------------
Alan Singfield, 81 Croxteth Dr. Rainford, Merseyside, WA11 8LA, ENGLAND.
At the moment I am revising for my A-levels, so I'm !(having a great time). For
anyone who doesn't want to know, I am doing Pure & Applied Maths, Physics and
an AS-level in Electronics. This October, I will be going to Manchester
University to do a degree in Computer Science (what else...) My favourite
colour is green, and I like listening to The Smiths, The Orb and My Bloody
Valentine.
About the program
-----------------
Blackhole is written using DICE C, with the text editor DME. It is totally
Public Domain, and can be copied and distributed as long as it is kept with all
it's accompanying files. If you use it though, please send me a disk or two of
PD software. In return, I will send you my favourite PD stuff.
You are quite welcome to plagarise bits from the source code, just stick my
name somewhere in the credits.
My system is a 2MB chip ram A500+, with an extra floppy and a TV (euurgh!). I
use a beta version of Workbench 2.1 (38.12) which is quite stable apart from
the asl.library.
Credits
-------
Thanks to Matt Dillon for DICE itself, and a few bits of code and techniques I
have copied from his editor DME. The control panel is based on Gadtools2.c from
the AmigaMail disk supplied with the v2.0 Native Developer Kit.
Thanks to Howard Mansell for some good ideas!! (Your name in print, Sheep Fan!)